package com.linghang.pojo;

import lombok.Data;

//Data标签可以默认的让编译器给你写很多方法 比如这些get和set方法
@Data
public class User {
    private int id;
    private String name;
    private String number;
    public User(int i,String n,String num)
    {
        id=i;
        name=n;
        number=num;
    };

    /*public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", number='" + number + '\'' +
                '}';
    }*/
}
